<?php
namespace app\manage\controller;
use app\manage\model\Agency;
use app\manage\model\Record;
use think\session;
/**
 * Class Agent
 * @package app\manage\controller
 */
class Agent extends Comm
{

    /*
     * 代理商数据查询
     * 返回代理商数据
     */
    public function AgentIndex()
    {
        $agency    = new Agency;
        //代理商信息显示
        $manageid = Session::get('userid');
        $AgentSel = $agency->agentSel($manageid);

        return view('index',['agent'=>$AgentSel]);
    }

    /*
     * 提现记录查询
     * 返回提现记录
     */
    public function WithdrawalRecord(){
        $record = new Record;
        $wr     = $record->agrecord();
        return view('WithdrawalRecord',['wr'=>$wr]);
    }

}
